package tt.com.business.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import tt.com.business.service.DibaoService;
import tt.com.common.model.Dibao;
import tt.com.common.util.PageUtil;

@RestController
@RequestMapping(value = "dibao/business")
//业务办理的前端-后端/api/dead/manager/xxxx



public class DibaoController {

    @Autowired
    private DibaoService dibaoService;


//查询低保信息
    @PostMapping(value = "select/dibao")
    public ResponseEntity selectDibao(@RequestBody PageUtil pageUtil){
        return dibaoService.selectDibao(pageUtil);
    }
//导入低保信息
    @PostMapping(value = "add/dibao")
    public ResponseEntity addDibao(@RequestBody Dibao dibao){
        return dibaoService.addDIbao(dibao);
    }
}
